﻿using System;
using System.Web.UI.Design;

namespace Folks.UI.Design
{
	public class FolksManagerDesigner : ControlDesigner
	{
		public override string GetDesignTimeHtml()
		{
			return DesignerHelper.GetHtmlWithDescription(Manager.GetType().Name, Manager.ID, false);
		}

		protected override string GetErrorDesignTimeHtml(Exception e)
		{
			return DesignerHelper.GetHtmlWithDescription(e.Message, e.StackTrace, true);
		}

		private FolksManager Manager
		{
			get
			{
				return (FolksManager)base.Component;
			}
		}
	}
}
